cssnodestylecache: Use const pointer in lookup
authorTimm Bäder <mail@baedert.org>
Tue, 28 Feb 2017 07:23:19 +0000 (08:23 +0100)
committerTimm Bäder <mail@baedert.org>
Thu, 2 Mar 2017 14:16:08 +0000 (15:16 +0100)
gtk/gtkcssnode.c
gtk/gtkcssnodestylecache.c
gtk/gtkcssnodestylecacheprivate.h

index b363d7731e3a26f2c4ebe6892472a626ac91fe75..46ed213cb894a1acf02e12d37dceebae1c26d897 100644 (file)
@@ -318,7 +318,7 @@ lookup_in_global_parent_cache (GtkCssNode                  *node,
 
   g_assert (node->cache == NULL);
   node->cache = gtk_css_node_style_cache_lookup (parent->cache,
-                                                 (GtkCssNodeDeclaration *) decl,
+                                                 decl,
                                                  gtk_css_node_is_first_child (node),
                                                  gtk_css_node_is_last_child (node));
   if (node->cache == NULL)
index b07776d6663db40c1c001f29c9746628d7eeedbb..c5d7562119f183e26aadcf35280ff85dffe8ce02 100644 (file)
@@ -163,10 +163,10 @@ gtk_css_node_style_cache_insert (GtkCssNodeStyleCache   *parent,
 }
 
 GtkCssNodeStyleCache *
-gtk_css_node_style_cache_lookup (GtkCssNodeStyleCache   *parent,
-                                 GtkCssNodeDeclaration  *decl,
-                                 gboolean                is_first,
-                                 gboolean                is_last)
+gtk_css_node_style_cache_lookup (GtkCssNodeStyleCache        *parent,
+                                 const GtkCssNodeDeclaration *decl,
+                                 gboolean                     is_first,
+                                 gboolean                     is_last)
 {
   GtkCssNodeStyleCache *result;
 
index cef1ec2bff1ded2f968adbd36384c01998a5ca18..f4d62b61a02386decd4195a84fabc0c5d9927c2d 100644 (file)
@@ -36,10 +36,10 @@ GtkCssNodeStyleCache *  gtk_css_node_style_cache_insert         (GtkCssNodeStyle
                                                                  gboolean                is_first,
                                                                  gboolean                is_last,
                                                                  GtkCssStyle            *style);
-GtkCssNodeStyleCache *  gtk_css_node_style_cache_lookup         (GtkCssNodeStyleCache   *parent,
-                                                                 GtkCssNodeDeclaration  *decl,
-                                                                 gboolean                is_first,
-                                                                 gboolean                is_last);
+GtkCssNodeStyleCache *  gtk_css_node_style_cache_lookup         (GtkCssNodeStyleCache        *parent,
+                                                                 const GtkCssNodeDeclaration *decl,
+                                                                 gboolean                     is_first,
+                                                                 gboolean                     is_last);
 
 G_END_DECLS